// f[i][j] = f[i - 1][j] + f[i - 1][j - kv] = f[i - 1][j] + f[i][j - v];
// f[i][j - v] = f[i - 1][j - v] + f[i - 1][j - kv]

#include <iostream>
using namespace std;
const int N = 1010;
int w[4] = {10, 20, 50, 100};
int f[N];
int n;

int main()
{
    cin >> n;
    f[0] = 1;
    for (int i = 0; i < 4; ++i)
    {
        for (int j = w[i]; j <= n; ++j)
            f[j] += f[j - w[i]];
    }
    cout << f[n] << endl;
    return 0;
}